removed delay when waiting for keys