Fixing key state init.