After looking into it further I found the following Reddit post which encounters a similar issue and uses keyboard.read_event(suppress=True). This prevents the event from being propagated further to the input().
keyboard.read_event(suppress=True)
input()