Fixed bad check in keyboard.js