Renamed getter for lastKeycode in the js file