fix keydown method for firefox
update css style, add html/css comments