improved onkeydown event function, improved css, moved some css from htm file to css file