add four key func

add four key func and fix uart error after long time sleep