Question: I am trying to write a game on UWP platform. Problem is: I need to bind Gamepad B and Escape to two different actions. E.g. Escape should always close current whatever, but Gamepad B should only do that unless my game handles it for a different purpose.

However, in KeyDown on Xbox pressing Gamepad B is always visible as Escape.

Answer: 
One improvement i can see in your code is to use generator, so instead of square brackets, you can use round brackets. it will increase the speed by multiple time.

```
matches = (process.extract(x, df1, limit=1) for x in df2)

```

Edit: One more suggestion, we can parallelize the operation with `multiprocessing` library.
You can use python's multithreading package to speed it up. Pandas doesn't leverage multi cores by default.