fixed bug with holding down enter and tab