Use the new shorthand in keyboard listener
Added WeakArray from David Mauro https://github.com/dmauro/WeakArray