Sounds play correctly with the keyboard, and some bugs fixed.