added grace period for keypresses
ok now i really added a grace period for keypresses
guugh merges