moved some css from htm file to css file, improved clarity of keypress functions