adds key bindings for buttons
makes the buttons respond to key presses
changes the file open mode to ios::binary