key listener now working execpt for preventDefault