Fix compiler warnings, missing #include. From Thomas Adam.
Only accept partial keys if the timer has not expired, fixes infinite
loop when Escape is pressed the wrong number of times.
Merge branch 'obsd-master'