update Executekeys() function