Keypad and speaker works simultaneously

@peterjin, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

Can you please edit your post, select all code and click the </>; next save your post. This will prevent the forum software from mangling your code and makes it easier to read and copy. Thanks.