Fix for keyevent 4 shell command
fix for input keyevent 4 and checking if home screen is launched.