replace keypress with sleep 3