Added continous key state tracking