fps improvement for keys and fixed some bugs with albow dialogs