Fix debouncing and add legacy keymap support
Merge branch 'debouncing_fix'