Added isEmpty() method to Stack class. Started implementing keyboard shortcut handling code in main.js.