fixed key listener in canvas