Make sure 'keyevent' works if metastate is null.