Issue:
Some keys such as "ControlRight", "PageDown" , "PageUp" and "media controls" are not given a key-code. The code that handles the "None" branch will cause the spawned thread to panic and no sound will be played.
Solution:
To keep the user immersed, un-mapped Keys will fallback to "a".
Issue: Some keys such as "ControlRight", "PageDown" , "PageUp" and "media controls" are not given a key-code. The code that handles the "None" branch will cause the spawned thread to panic and no sound will be played.
Solution: To keep the user immersed, un-mapped Keys will fallback to "a".
Additional refactoring: Removed code duplication