Running psychopy in sudo mode

Does this post help?

Here is a thread about using two keyboards.