Sorry, did not notice this.

This part of code is a duplicate of the following section for handling 'keyboard.clicksound'.
Can we make a simple function to reduce duplicate code?

Thank you.