key scan example

with interrupt