add sample key driver

change spi event waiting control