Key pressed bug fixed