Update lib.js

Page scrolls when arrow keys are being used on the canvass as part of the game mechanic. Added a line of code to prevent that from happening.