I was looking this up because im stuck in the room, too. I just got it to work by pressing z, selecting the potion and instead of using a, I held z down while Harry drank the potion. It didn't work to just press z.