checking for pressed buttons instead of released