cleaned up keyboard.js